import request from '@/utils/request'

// 查询用户Email列表
export function listUseremail(query) {
  return request({
    url: '/system/useremail/list',
    method: 'get',
    params: query
  })
}

// 查询用户Email详细
export function getUseremail(id) {
  return request({
    url: '/system/useremail/' + id,
    method: 'get'
  })
}

// 新增用户Email
export function addUseremail(data) {
  return request({
    url: '/system/useremail',
    method: 'post',
    data: data
  })
}

// 修改用户Email
export function updateUseremail(data) {
  return request({
    url: '/system/useremail',
    method: 'put',
    data: data
  })
}

// 删除用户Email
export function delUseremail(id) {
  return request({
    url: '/system/useremail/' + id,
    method: 'delete'
  })
}
